package com.xunqi.ad.client;

import com.xunqi.ad.client.form.AdPlanGetForm;
import com.xunqi.ad.client.vo.AdPlanVo;
import com.xunqi.ad.vo.ResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.validation.Valid;
import java.util.List;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @createTime: 2020-05-02 21:15
 **/
@FeignClient(value = "eureka-client-ad-sponsor",fallback = SponsorClientHystrix.class)
public interface SponsorClient {

    @RequestMapping(value = "/ad-sponsor/get/adPlan",method = RequestMethod.POST)
    public ResponseVo<List<AdPlanVo>> getAdPlansByRibbon(@Valid @RequestBody AdPlanGetForm form);

}
